<?php



error_reporting(E_ALL);
ini_set('display_errors', 'On');
ini_set('date.timezone', 'Asia/Shanghai');


use Tiger\Tiger;
use Tiger\Worker;

require __DIR__.'/Tiger/Loader.php';
require __DIR__ . '/vendor/autoload.php';

//设置配置文件目录
Tiger::setConfigPath(__DIR__.'/App/Config/', 'app');
//设置app应用目录
Tiger::setAppsPath(__DIR__.'/App/');

//$result = Tiger::$app->redis('dev')->get('test');
//var_dump($result);

//$result = Tiger::$app->mysql('dev')->table('account')
//    ->select('*')
//    ->where('steamId', '<', 76561197960341220)
//    ->orderBy('steamId', 'desc')
//    ->limit(10)
//    ->getAll(true);
//var_dump($result);

$result = Tiger::$app->mns('dev')->batchPush('A-TEST', array('1', '2', '3'));
ladybug_dump($result);

//$result = Tiger::$app->ots('dev')->put('sanbai_match_digest', array('id' => 1), array('c' => 'cc', 'a' => 'ac'));
//$result = Tiger::$app->ots('dev')->get('sanbai_match_digest', array('id' => 1), array('a'));
//ladybug_dump($result);
$result = Tiger::$app->mns('dev')->push('A-TEST', array(1,2,3));
ladybug_dump($result);
